package cn.qiyu5522.tk_ems.service;

import cn.qiyu5522.tk_ems.entity.Permission;
import cn.qiyu5522.tk_ems.entity.Role;
import cn.qiyu5522.tk_ems.entity.dto.QueryParamDTO;
import cn.qiyu5522.tk_ems.entity.dto.RoleDTO;
import cn.qiyu5522.tk_ems.result.R;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Tonkey
 * @since 2023-02-22
 */
public interface RoleService extends IService<Role> {

    List<Role> listRolesByUserId(Long userId);

    List<Permission> listPermissionsByRoleId(Integer id);

    R queryRoleListByCondition(QueryParamDTO<RoleDTO> queryParamDTO);

    R saveMore(List<RoleDTO> roleDTOs);
}
